
<!doctype html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="apple-itunes-app" content="app-id=id1526257953">
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <title>m3u8tojson index</title>
    <meta charset="UTF-8" />
    <link type="text/css" rel="stylesheet" href="doc/index.css" />
    <!--<script type="text/javascript" src="//gitee.com/yongle/js_parse_markdown/raw/master/showdown.js"></script>-->
    <script type="text/javascript" src="doc/showdown.js"></script>

	<script type="text/javascript">
		// var Showdown  = require('showdown');
		var converter = new Showdown.converter();
		// var hello = converter.makeHtml('#hello!');
		// alert(hello);
	</script>
</head>

<body>
    <div id="body">
        正在加载数据...
        <noscript>未开启javascript, 加载数据失败!</noscript>
    </div>
</body>
<script>
    let body = document.getElementById('body');
    fetch('README.md', { method: 'get' })
        .then(res => {
            res.text()
                .then(txt => {
                    let hello = converter.makeHtml(txt);
                    body.innerHTML = hello;
                })
        }).catch(e => {
            console.log('加载数据失败! error: ', e);
            body.innerText = '加载数据失败! 详情请按F12查看控制台输出!';
        })
</script>

</html>